﻿<Page x:Class="WpfAnimation.PageAnimationBase"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="800"
	Title="PageAnimationBase">
    <Canvas>
        <Button Content="By:100 " Height="23" HorizontalAlignment="Left" Margin="58,209,0,0" Name="button2" VerticalAlignment="Top" Width="75" Canvas.Left="-24" Canvas.Top="-150">
            <Button.Triggers>
                <EventTrigger RoutedEvent="Button.Click">
                    <BeginStoryboard>
                        <Storyboard>
                            <DoubleAnimation By="100"  Storyboard.TargetName="button2" Storyboard.TargetProperty="Width" />
                        </Storyboard>
                    </BeginStoryboard>
                </EventTrigger>
            </Button.Triggers>
        </Button>
      
        <Button Canvas.Left="34" Canvas.Top="109" Content="IsAdditive:True" Height="23" Name="button1" Width="105" >
            <Button.Triggers>
                <EventTrigger RoutedEvent="Button.Click">
                    <BeginStoryboard>
                        <Storyboard>
                            <DoubleAnimation From="100" To="200"  IsAdditive="True"   Storyboard.TargetProperty="Width" />
                        </Storyboard>
                    </BeginStoryboard>
                </EventTrigger>
            </Button.Triggers>
        </Button>
        <Button Canvas.Left="34" Canvas.Top="12" Content="Normal " Height="23" Name="button3" Width="75" >
            <Button.Triggers>
                <EventTrigger RoutedEvent="Button.Click">
                    <BeginStoryboard>
                        <Storyboard>
                            <DoubleAnimation From="100" To="200"    Storyboard.TargetProperty="Width" />
                        </Storyboard>
                    </BeginStoryboard>
                </EventTrigger>
            </Button.Triggers>
        </Button>
        <Button Canvas.Left="34" Canvas.Top="199" Content="IsCumulative:True" Height="23" Name="button4" Width="124" >
            <Button.Triggers>
                <EventTrigger RoutedEvent="Button.Click">
                    <BeginStoryboard>
                        <Storyboard>
                            <DoubleAnimation From="100" To="200"   RepeatBehavior="4x"  IsCumulative="True"  Storyboard.TargetProperty="Width" />
                        </Storyboard>
                    </BeginStoryboard>
                </EventTrigger>
            </Button.Triggers>
        </Button>
        <TextBlock Canvas.Left="152" Canvas.Top="135" Height="47" Name="textBox1" TextWrapping="Wrap"   
                   Text="获取或设置一个值，该值指示是否应将目标属性的当前值与此动画的起始值相加。如果动画仅设置了其 From、 To 或 By 属性之一，则设置此属性将无效。 
" Width="636" />
        <TextBlock Canvas.Left="145" Canvas.Top="221" Height="67" Name="textBlock1" Text=" 获取或设置一个值，该值指定动画重复时是否累计该动画的值。如果动画在其 RepeatBehavior 属性使其简单重复时累计它的值，则为 true。 否则为 false。 默认值为 false。如果将该属性设置为 true，则只在该动画的 RepeatBehavior 属性使其简单重复时累计该动画的输出值。 该动画在重新启动时不累计其值，这是因为已重复该动画的父级，或者是因为已从 Begin 调用中重新启动该动画的时钟。 
 " TextWrapping="Wrap" Width="636" />
        <TextBlock Canvas.Left="113" Canvas.Top="85" Height="19" Name="textBlock2" 
                   Text="获取或设置动画更改其起始值时依据的总量。如果同时设置了 To 和 By 属性，则 To 属性优先，而 By 属性会被忽略。  " TextWrapping="Wrap" Width="636" />
    </Canvas>
</Page>
